<template>
  <div>
    <van-nav-bar title="课程卡包" left-text="返回" left-arrow @click-left="$router.go(-1)" />
    <div class="city-entry">
      <router-link to="">
        <span class="city-name">未选择</span>
        <div class="city-entry-arrow"></div>
      </router-link>
    </div>
    <van-tag plain round type="primary" color="#666">乐刻瑜伽馆</van-tag>
    <van-tag plain round type="primary" color="#666">收费课</van-tag>
    <van-tag plain round type="primary" color="#666">FitTribe</van-tag>
    <div class="viplist">
      <div class="viplist-img">
        <img src="../../assets/kecheng.jpg" alt="" />
      </div>
      <div class="viplist-info">
        <router-link to="carddetail"> <div class="viplist-info-title">华为专属团课包</div></router-link>
        <router-link to="carddetail">
          <div class="viplist-info-shortIntro">华为专属团课包</div>
        </router-link>
        <router-link to="carddetail">
          <div class="viplist-info-price">￥199</div>
        </router-link>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  //   setup() {
  //     const onClickLeft = () => history.back();
  //     return {
  //       onClickLeft,
  //     };
  //   },
}
</script>

<style>
.van-nav-bar__text,
.van-nav-bar .van-icon {
  color: #666 !important;
}
.city-entry {
  padding-left: 20px;
  display: flex;
  align-items: center;
  font-size: 18px;
  color: #666 !important;
}
a {
  color: #666;
}
/* 自动定位城市名称 */
.city-entry .city-name {
  max-width: 140rpx;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 自动定位城市箭头 */
.city-entry .city-entry-arrow {
  width: 0;
  height: 0;
  border: 6px solid #b0b0b0;
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  display: inline-block;
  margin-left: 8px;
  margin-top: 10px;
}
.viplist {
  display: flex;
  border-bottom: 1px solid gainsboro;
  box-sizing: content-box;
  padding: 10px;
}
.viplist-img img {
  width: 140px;
  height: 100px;
}
.viplist-info {
  margin: 5px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.viplist-info-title {
  font-size: 18px;
  color: black;
}

.viplist-info-shortIntro {
  font-size: 12px;
  color: gray;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.viplist-info-price {
}
</style>
